home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / role / ZIP_1_0.lha / src / extern.c < prev    next >
C/C++ Source or Header  |  1992-10-13  |  1KB  |  87 lines

  1. /*
  2.  * extern.c
  3.  *
  4.  * Global data.
  5.  *
  6.  * Mark Howell 28-Jul-1992 V1.0
  7.  *
  8.  */
  9.  
  10. #include "ztypes.h"
  11.  
  12. /* Game header data */
  13.  
  14. zbyte_t h_type = 0;
  15. zword_t h_version = 0;
  16. zword_t h_data_size = 0;
  17. zword_t h_start_pc = 0;
  18. zword_t h_words_offset = 0;
  19. zword_t h_objects_offset = 0;
  20. zword_t h_globals_offset = 0;
  21. zword_t h_restart_size = 0;
  22. zword_t h_synonyms_offset = 0;
  23. zword_t h_file_size = 0;
  24. zword_t h_checksum = 0;
  25.  
  26. /* Game version specific data */
  27.  
  28. int story_scaler = 0;
  29. int story_shift = 0;
  30. int property_mask = 0;
  31. int property_size_mask = 0;
  32.  
  33. /* Stack and PC data */
  34.  
  35. zword_t stack[STACK_SIZE];
  36. zword_t sp = STACK_SIZE;
  37. zword_t fp = STACK_SIZE - 1;
  38. unsigned long pc = 0;
  39.  
  40. /* Data region data */
  41.  
  42. unsigned int data_size = 0;
  43. zbyte_t *datap = NULL;
  44.  
  45. /* Dictionary data */
  46.  
  47. int entry_size = 0;
  48. unsigned int dictionary_size = 0;
  49. unsigned int dictionary_offset = 0;
  50. char punctuation[16];
  51.  
  52. /* Screen size data */
  53.  
  54. int screen_rows = 24;
  55. int screen_cols = 80;
  56.  
  57. /* Current window data */
  58.  
  59. int window = TEXT_WINDOW;
  60.  
  61. /* Formatting and output control data */
  62.  
  63. int format_mode = ON;
  64. int output_enable = ON;
  65. int scripting_disable = OFF;
  66.  
  67. /* Status region data */
  68.  
  69. int status_active = OFF;
  70. int status_size = 0;
  71.  
  72. /* Text output buffer data */
  73.  
  74. int lines_written = 0;
  75. int char_count = 0;
  76. int status_pos = 0;
  77.  
  78. /* Dynamic buffer data */
  79.  
  80. char *line = NULL;
  81. char *input = NULL;
  82. char *status_line = NULL;
  83.  
  84. /* Name of the file to restore at the start of a game */
  85.  
  86. char *restore_name = NULL;
  87.